package com.awesumgames.testgame;

import tv.ouya.console.api.OuyaController;
import android.util.Log;

import com.awesumgames.awesum.Drawable;
import com.awesumgames.awesum.Game;
import com.awesumgames.awesum.Quaternion;
import com.awesumgames.awesum.Scene;
import com.awesumgames.awesum.SceneCollection.SceneMode;

public class ModelScene extends Scene {

	ParametricThing thing = null;
	
	public void load() {
		children.add(thing = new ParametricThing());
		
		super.load();

		Game.camera.set(0f,	1f,	5f,
				0f,	0f,	-5f,
				0f,	1f,	0f);
	}
	
	public void step() {
		super.step();
		
		OuyaController c = OuyaController.getControllerByPlayer(0);
		if (c == null) return;
		if (c.buttonChangedThisFrame(OuyaController.BUTTON_R1) && c.buttonPressedThisFrame(OuyaController.BUTTON_R1)) {
			Game.scenes.add(new BreakoutScene(), SceneMode.REPLACE);
		}
	}
}
